<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class LevelTeacher extends Model
{
    //
    protected $fillable = ['tl_code', 'name', 'level'];
    public function teachers(): \Illuminate\Database\Eloquent\Relations\belongsToMany
    {
        return $this->belongsToMany(Teacher::class, 'teachers_relate_level','tl_code','tc_code','tl_code','tc_code');
    }

}
